from datetime import datetime


def trim(value):
    return value.replace(" ", "")


def format_datetime_object(dt_object, format_str='%Y-%m-%d %H:%M:%S'):
    return dt_object.strftime(format_str)
